<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        .box {
            margin: 0 auto;
            display: flex;
            justify-content: center;
            align-items: center;
            width: 1000px;
            height: 500px;
            gap: 10px;
            background-color: #1f1f1f;
        }

        [class^=boll] {
            width: 50px;
            height: 50px;
            border-radius: 50%;
            background-color: #3f96cf;
            transition: 0.5s linear;
        }

        .boll01:hover {
            transform: translateY(-50px);
            background-color: #d35d50;
            transition: 0.5s linear;
        }

        .boll01:hover+.boll02 {
            transition-delay: 0.2s;
            transform: translateY(-50px);
            background-color: #d35d50;
          
        }

        .boll01:hover~.boll03 {
            transition-delay: 0.4s;
            transform: translateY(-50px);
            background-color: #d35d50;
           
        }
    </style>
</head>

<body>
    <div class="box">
        <div class="boll01"></div>
        <div class="boll02"></div>
        <div class="boll03"></div>
    </div>
</body>

</html>